package com.sunshine.androidjavapractise.socket;

import java.net.InetSocketAddress;

public class SocketAddress {
    public SocketAddress(String ip, String port) {
        mIp = ip;
        mPort = port;
    }

    public String getIp() {
        return mIp;
    }

    public void setIp(String ip) {
        mIp = ip;
    }

    public String getPort() {
        return mPort;
    }

    public void setPort(String port) {
        mPort = port;
    }

    String mIp;
    String mPort;

    public InetSocketAddress getInetSocketAddress() {
        return new InetSocketAddress(getIp(), Integer.valueOf(getPort()));
    }

}
